def int_to_bytes(number):
    # 将整数转换为字符串，并使用zfill方法填充前导零
    str_number = str(number).zfill(8)
    # 然后将字符串编码为字节串
    byte_data = str_number.encode('utf-8')

    return byte_data


iv = b'01234567'
nonce = int(iv)

int_to_bytes(nonce)
